<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>조립PC의 대명사- PC Master~!~!</title>
<script>
function idFindCheck(){
	var name = document.idFindForm.member_name.value;
	var year = document.idFindForm.year.value;
	var month = document.idFindForm.month.value;
	var day = document.idFindForm.day.value;	
	
	//유효성 검사 시작
	if(name.length == 0){
		alert("이름을 입력하세요.");
		idFindForm.member_name.focus();
		return false;
	}	
	//유효성 검사 끝
	
	//생년월일
	//월,일이 10보다 작을경우 앞에 0 을 삽입
	if(month < 10){
		month="0"+month;
	}		
	if(day < 10){
		day="0"+day;
	}	
	//생년월일
	//년,월,일 사이에 - 을 삽입
	month= year+"-"+month;
	day=month+"-"+day;
	//히든타입에 생년월일 삽입
	idFindForm.member_birth.value=day;
	
	document.idFindForm.submit();
}
</script>
</head>
<body>

<!-- 상단 로그인 패널을 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;z-index:1 ">
<%@ include file="../loginPanel.jsp" %>
</div>

<!-- 상단 및 좌측 메뉴(카테고리)리스트를 include로 삽입 -->
<div style="position:absolute; left:50%; top:0px; width:1200px; height:80px; margin-left:-600px;">
<%@ include file="../top.jsp" %>
</div>

<div style="position:absolute; left:50%; top:160px; width:1000px; height:80px; margin-left:-400px;">
<!--------------------------------------여기다가 각자 삽입------------------------------------>
<!-- 타이틀 -->
<table style="margin-left: 30px; margin-top:30px" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><img src="/web/resources/images/bar_t_line.gif" border="0" alt="" /></td>
			<td style="color:333333;font-size:14px;font-weight:bold;">아이디 찾기</td>
	</tr>
</table>	  
<!-- 타이틀 끝 --><br/>

<form name="idFindForm" action="/web/member/idFind" method="post">
<!-- 히든 폼 -->
<input type="hidden" name="member_birth" />
<!-- 히든 폼 끝 -->
이름 : <input type="text" name="member_name"/><br/>
생년월일 : 
<select name="year" id="year">
<c:forEach begin="1930" end="2013" step="1" var="cnt">
<option value="${cnt }">${cnt }</option>
</c:forEach>
</select>년 
<select name="month" id="month"	style="width: 44px; height: 23px; font-size: 10pt;">
<c:forEach begin="1" end="12" step="1" var="cnt">
<option value="${cnt }">${cnt }</option>
</c:forEach>
</select>월 <select name="day" id="day" style="width: 44px; height: 23px; font-size: 10pt;">
<c:forEach begin="1" end="31" step="1" var="cnt">
<option value="${cnt }">${cnt }</option>
</c:forEach>
</select>일<br/>
<input type="button" value="찾기" onclick="idFindCheck()" />
<input type="button" value="취소" onclick="location.href='/web/'"/>
</form> 
<!--------------------------------------   삽입 끝       ------------------------------------>
</div> 

<!-- 하단 이용약관, 고객센터, 회사정보 등의 정보를 include로 삽입 -->
<div style="position:absolute; left:0; top:1200px; width:100%; height:80px; ">
<%@ include file="../bottom.jsp"%>
</div>
</body>
</html>